package com.czxy.demo10;

import java.util.ArrayList;

public class Test01 {

    public static void main(String[] args) {

        String []strs={"12","345","6789","1","123","4567"};
        ArrayList<String> list1=new ArrayList<>();
        ArrayList<String>list2=new ArrayList<>();
        for (String str : strs) {
            if (str.length()%2==0){
                list1.add(str);
            }else {
                list2.add(str);
            }
        }
        System.out.println(list1);
        System.out.println(list2);

    }

}
